import request from '@/utils/request'

// 根据手机号查询旧车信息
export function GetOldInformation (params) {
  return request({
    method: 'GET',
    url: '/assess/quote/getOldVhclByPhone',
    params
  })
}
// 获取颜色
export function GetOldColor (type) {
  return request({
    headers: {
      'Content-Type': 'application/json',
      apikey: 'svwuc'
    },
    method: 'GET',
    url: `/system/uc/code/${type}`
  })
}
// 获取价格
export function getprice (params) {
  return request({
    method: 'GET',
    url: '/assess/eva/vinAccurate',
    params
  })
}
// 获取银行
export function getBank () {
  return request({
    method: 'GET',
    url: '/assess/quote/getBankList'
  })
}
// 新车车系
export function newSerise () {
  return request({
    method: 'GET',
    url: '/assess/quote/getSalesSeriesList'
  })
}
// 获取车型
export function selectname (params) {
  return request({
    method: 'GET',
    url: '/assess/quote/getSalesModelList',
    params
  })
}
// 信贷产品的配置信息
export function creaditInfo (params) {
  return request({
    method: 'GET',
    url: '/assess/quote/getPolicyList',
    params
  })
}
// 初始化保险配置信息
export function InitInsureBank () {
  return request({
    method: 'GET',
    url: '/assess/quote/getInsuranceList'
  })
}
// 新增保险配置
export function addInsuresBank (data) {
  return request({
    method: 'POST',
    url: '/assess/quote/saveInsuranceInfo',
    data
  })
}
// 利率
export function custarate (data) {
  return request({
    method: 'POST',
    url: '/assess/quote/saveCustomRateInfo',
    data
  })
}
// 计算月供

export function accountYearsMoeny (params) {
  return request({
    method: 'GET',
    url: '/assess/quote/calculationMonthPay',
    params
  })
}
